package mediator;

/**
 * @Author: Doream
 * @Date: 2022/1/30 12:16
 */
public class Client {
    public static void main(String[] args) {
        MediatorStructure mediatorStructure = new MediatorStructure();
        Tenant tenant = new Tenant("张三", mediatorStructure);
        HouseOwner houseOwner = new HouseOwner("李四", mediatorStructure);
        mediatorStructure.setHouseOwner(houseOwner);
        mediatorStructure.setTenant(tenant);

        tenant.constact("我要租一个三室的房子");
        houseOwner.constact("我这里有，你要租吗");
    }
}
